
<%@ page contentType="text/html; charset=utf-8" 
%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" 
%><%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" 
%><%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" 
%><%@ taglib uri="http://www.springframework.org/tags" prefix="spring"
%><%@ page import="java.util.Locale"
%><%@ page import="java.util.ResourceBundle"
%><%
	Locale rLocale = request.getLocale();
	ResourceBundle bundle = ResourceBundle.getBundle("basResources/Messages", rLocale);
	Locale selectedLocale = bundle.getLocale();
	if (Locale.KOREA.equals(rLocale)) {
		System.out.println("korea");
	} else
	if (Locale.ENGLISH.equals(rLocale)) {
		System.out.println("english");
	}
%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>multilingual.jsp</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
[<%= request.getLocale().getLanguage() %>]<br/>
[<%= request.getLocale().getISOLanguages() %>]<br/>
[<%= request.getLocale().getCountry() %>]<br/>
[${pageContext.request.locale.language}]<br/>
[<spring:message code="bbs.title" javaScriptEscape="true"/>]
</body>
</html>